import React from 'react';
import './Persion.css';
// props 组件通讯
const Person=(props) => {
    return (
        <div className="Person">
          {/* 获取属性*/}
          <p onClick={props.myclick}>hello I am {props.name},I have {props.count} projects</p>
          {/* 获取伪标签的内容*/}
          <p>{props.children}</p>
          <input type="text" onChange={props.changed} defaultValue={props.name}/>
        </div>

    );
};

export default Person;
